package com.arpa.ntocc.common.common.exception;

/**
 * 权限异常
 * @Author liuyj
 * @Date 2019-11-07 17:29:18
 */
public class PermissionException extends RuntimeException {

	private String permission;

	public PermissionException(){
		super();
	}

	public PermissionException(String permission){
		super();
		this.permission=permission;
	}

	@Override
	public String getMessage() {
		return "缺少权限： " + this.permission ;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}
}
